package com.coolingme.mouseevent.handler;

import com.coolingme.mouseevent.core.Event;
import com.coolingme.mouseevent.core.EventListener;

/**
 * 观察者，回调方法
 *
 * @author wangyue
 * @date 2020-10-19 23:19
 */
public class MouseEventListener implements EventListener {

    @Override
    public void onClick(Event event) {
        System.out.println("======触发单击事件=======");
    }

    @Override
    public void onDoubleClick(Event event) {
        System.out.println("======触发双击事件=======");
    }

    @Override
    public void onMove(Event event) {
        System.out.println("======触发移动事件=======");
    }
}
